<?php
$con = @mysql_connect("localhost","root","");
if (!$con)
{
	die('Could not connect: ' . mysql_error());
}

mysql_select_db("data", $con);

$result = mysql_query("SELECT * FROM homework_submit");

echo "<table border='1' cellpadding='0' cellspacing='0'>
<tr>
<th>homework_list</th>
</tr>";

while($row = mysql_fetch_array($result))
{
	echo "<tr>";
	echo "<td>" . $row['h_name'] . "</td>";
	echo "</tr>";
}
echo "</table>";

mysql_close($con);
?>